<style>
.headinfo {
    background: none;
}
.headinfo .mod-member {
    margin: 0 auto;
	margin-top: 0;
    width: 100%;
	left:3%;
    padding: 6px 0 10px;
    background: none;
    border: 0 solid #f2f2f2;
}
.headinfo .mod-member .sign-btn{
    position: absolute;
    margin: 0 auto;
	top: -2.1rem;
    width: 2rem;
	height: 1.3rem;
	right:1rem;
    color:#fff;
	text-align:center;
	padding-top:3px;
    background: #7c1cc9;
}
.member-page .headinfo .child.userinfo .face {
    height: 2.8rem;
    width: 2.8rem;
    background:none;
    margin: auto;
    border-radius: 2.8rem;
	border: 0 solid #fff;
}
.bottombg {bottom:-20px;width:100%;height:auto;border-bottom-right-radius:100% 40px;border-bottom-left-radius:100% 40px;}
.mod-group {
    margin: 0 auto;
	margin-top: 5px;
   width: 100%;
    background-color: #fff;
    border-radius: 10px;
    border: 1px solid #f2f2f2;
}
.fui-icon-group .fui-icon-col-sm {
    margin:10px 0;
}
.badge {
    left: 2rem;
    top: 0;
}
.arrow-top {
  width: 0;   
  height: 0;   
  border-left: 10px solid transparent; 
  border-right: 10px solid transparent;
  border-bottom: 10px solid #000; 
  font-size: 0;  
  line-height: 0;
  margin-left:1.3rem
}
.fui-icon-group .fui-icon-col-sm .icon i {
    color: {{main.syscolor || '#FF4444'}};
    font-size: 1.4rem;
}
.fui-icon-group .fui-icon-col-sm .icon {
    height: auto;
    line-height: 1.4;
}
.showcode {padding:0.15rem;font-size:0.6rem;color:#fff;background-color:#e7bf82;border-top-left-radius:1rem;border-bottom-left-radius:1rem;}
.fui-cell-group .fui-cell .fui-cell-remark:after {
    border-color: #f60;
    margin-left: 0.2rem;
}

</style>
<div class='fui-page fui-page-current' ng-show="pagedata.isshowarea !=1">
	<div class='fui-content member-page'>
		<div class="bottombg" style="background:{{main.syscolor || '#7c1cc9'}};padding-bottom:1.5rem">
		<div class="headinfo" style="height:auto;">		
				<div class="mod-member">
					<div ng-if="pagedata.sign_open==1" class="sign-btn" href="javascript:;" ng-click="access_json('core/member.qiandao/')" style="background:#e7bf82;">签到</div>
					<div class="headinfo" style="background:none;padding:0;color:#fff">
												<div class="child userinfo" style="padding-bottom:5px;color:#fff;width:4rem">
													<div class="face" style="margin-right:0.6rem;padding: 0.1rem;" href="javascript:;" ng-click="access_json('core/member.cavatar/')">
															<img style="border: 2px solid #e7bf82;width:3rem;height:3rem" ng-src="{{tomedia(pagedata.item.avatar) || '../core/resource/images/gw-user.png'}}" />
															<span class="vip" style="background: #e7bf82 none repeat scroll 0 0;"><i class="icon icon-vip5" style="font-size:0.5rem;padding-left:0.1rem"></i></span>
													</div>
												</div>
												<div class="child userinfo" style="padding-bottom:0;color:#fff;flex: 1;text-align:left;">
													<div class="l bold" style="line-height:1.5;width:100%">{{pagedata.item.nickname}}</div>
													<div class="l" style="line-height:1.5">
														<div style="width:100%;font-size:0.7rem;color:{{main.syscolor || '#7c1cc9'}}">
														<span class="fui-tag fui-tag-danger" style="background:linear-gradient(to right,rgba(244,221,187,0.6),rgba(235,216,174,1));color:#512f0a;" href="javascript:;" onclick="$('#show_vipcard').modal();">{{pagedata.item.level}}</span>
														<span href="javascript:;" ng-click="access_json('jy_weishop/member.viplog/')" style="font-size:0.6rem;color:#e7bf82">记录 >></span>
														<span class="showcode r-f" ng-click="access_json('core/member.paycode/');">付款码 <i class="icon icon-qrcode" style="color:#fff;font-size: 0.6rem;"></i></span>
														</div>
														<div style="width:100%;font-size:0.6rem;color:#e7bf82" ng-if="pagedata.item.viptime">
														{{pagedata.item.viptime}}到期 
														<span href="javascript:;" ng-click="access_json('jy_weishop/member.open//xufee=1')" style="color:#fff;">续费会员 >></span>
														</div>
														<div style="width:100%;font-size:0.7rem" href="javascript:;" ng-click="access_json('core/member.set/')">手机: {{pagedata.item.mobile}} <span style="color:{{main.syscolor || '#7c1cc9'}}">设置</span></div>
														<div style="font-size:0.5rem">
														<span style="color:#e7bf82;" ng-if="pagedata.sale_luck.title" href="javascript:;" ng-click="access_json('jy_weishop/member.luck/')">[{{pagedata.sale_luck.title}}] (享受{{pagedata.sale_luck.discount}}折)</span>
														</div>
													</div>
												</div>	
						</div>
						<div ng-if="pagedata.nextlevel && pagedata.nextlevel.id>0" style="margin:0 0.5rem;">
							<div class="arrow-top"></div>
							<div ng-click="access_json('jy_weishop/member.open//id='+pagedata.nextlevel.id);" class="memlogo-area" style="margin-bottom:0.5rem;height:3.3rem;padding:0.5rem;background:url({{tomedia(pagedata.nextlevel.cardbg) || '../core/resource/images/cardbg.png'}}) no-repeat 100%">
									<div class="name bold">升级：{{pagedata.nextlevel.title || 'VIP卡'}}</div>
									<br>
									<div class="name overflow-h" style="max-width: 8rem;background:#333;border-radius:0.2rem;font-size:0.5rem;padding:0 3px">{{pagedata.nextlevel.desc || '预计年均省685元'}}</div>
									<div class="code">
										<img ng-src="{{tomedia(pagedata.nextlevel.vipimgs) || '../addons/jy_weishop/resource/images/vipimgs.png'}}">
									</div>
							</div>
						</div>
						<div class="fui-icon-group noborder col-4" style="margin-top:-0.3rem">
												<div class="fui-icon-col-sm external" style="margin:0">
													<div>
														<div class="text bold" style="color:#fff">{{pagedata.item.credit2 || '0.00'}}</div>
														<div class="subtitle" style="font-size:12px;color: #fff;">余额 <span ng-if="pagedata.setpay.credit==1" href="javascript:;" ng-click="access_json('core/member.feecard/')" style="color:#999">查看</span></div>
													</div>
												</div>
												<div class="fui-icon-col-sm external" style="margin:0">
													<div href="javascript:;" ng-click="access_json('core/member.xunibi//type=1')">
														<div class="text bold" style="color:#fff">{{pagedata.item.credit1 || '0'}}</div>
														<div class="subtitle" style="font-size:12px;color: #fff;">我的积分  <span style="color:#999">查看</span></div>
													</div>
												</div>
												<div class="fui-icon-col-sm external" style="margin:0">
													<div>
														<div class="text bold" style="color:#fff">{{pagedata.item.mycoupon || 0}}</div>
														<div class="subtitle" style="font-size:12px;color: #fff;">优惠券</div>
													</div>
												</div>
												<div ng-if="pagedata.setting.no_xianred!=1" class="fui-icon-col-sm external" style="margin:0">
													<div>
														<div class="text bold" style="color:#fff">{{pagedata.item.ideal_money || '0.00'}}</div>
														<div class="subtitle" style="font-size:12px;color: #fff;">现金红包</div>
													</div>
												</div>
												<div ng-repeat="c in pagedata.item.credit_type" class="fui-icon-col-sm external" style="margin:0">
													<div>
														<div class="text bold" style="color:#fff">{{c.data || '0.00'}}</div>
														<div class="subtitle" style="font-size:12px;color: #fff;">{{c.title}} 
														<span ng-if="c.api!=0" href="javascript:;" ng-click="access_json('core/member.xunichong//type='+c.id)" style="color:#999">充值</span>
														<span ng-if="c.api==0" href="javascript:;" ng-click="access_json('core/member.xunibi//type='+c.id)" style="color:#999">查看</span>
														</div>
													</div>
												</div>
						</div>
					</div>
			</div>
		</div>
		<div class="jy-content" style="margin-top:-2rem">
			<div class="fui-cell-group fui-cell-click mod-group">
							<a class="fui-cell external" href="javascript:;" ng-click="access_json('jy_pigtuan/order.list/')">
								<div class="fui-cell-text bold">我的订单</div>
								<div class="fui-cell-remark" style="font-size: 0.65rem;">查看全部订单</div>
							</a>
							<div class="fui-icon-group col-5 selecter">
								<a class="fui-icon-col-sm external" href="javascript:;" ng-click="access_json('jy_pigtuan/order.list//status=0')">
									<div class="badge" ng-if="pagedata.statics.status0>0">{{pagedata.statics.status0}}</div>
									<div class="icon icon-green radius"><i class="icon icon-daifukuan1"></i></div>
									<div class="text">待付款</div>
								</a>
								<a class="fui-icon-col-sm external" href="javascript:;" ng-click="access_json('jy_pigtuan/order.list//status=1')">
									<div class="badge" ng-if="pagedata.statics.status1>0">{{pagedata.statics.status1}}</div>
									<div class="icon icon-orange radius"><i class="icon icon-daifahuo"></i></div>
									<div class="text">待发货</div>
								</a>
								<a class="fui-icon-col-sm external" href="javascript:;" ng-click="access_json('jy_pigtuan/order.list//status=2')">
									<div class="badge" ng-if="pagedata.statics.status2>0">{{pagedata.statics.status2}}</div>
									<div class="icon icon-blue radius"><i class="icon icon-daishouhuo1"></i></div>
									<div class="text">待收货</div>
								</a>
								<a class="fui-icon-col-sm external" href="javascript:;" ng-click="access_json('jy_pigtuan/order.list//status=3')">
									<div class="badge" ng-if="pagedata.statics.status3>0">{{pagedata.statics.status3}}</div>
									<div class="icon icon-blue radius"><i class="icon icon-survey1"></i></div>
									<div class="text">待评价</div>
								</a>
								<a class="fui-icon-col-sm external" href="javascript:;" ng-click="access_json('jy_pigtuan/order.list//status=5')">
									<div class="badge" ng-if="pagedata.statics.status4>0">{{pagedata.statics.status4}}</div>
									<div class="icon icon-pink radius"><i class="icon icon-tuihuanhuo1"></i></div>
									<div class="text">退换货</div>
								</a>
							</div>
			</div>
			<div class="fui-cell-group fui-cell-click mod-group">
					<div class="fui-cell external" style="background:#fdf5e9">
						<div class="fui-cell-text bold" style="color:#f60">当前提货点</div>
						<div class="fui-cell-remark" style="font-size: 0.65rem;color:#f60" ng-click="pagedata.isshowarea=1">切换</div>
					</div>
					<div class="fui-cell external">
						<div class="fui-cell-text">
							<div class="bold">{{pagedata.nowdian.title || '无自提点'}}</div>
							<div class="gray" style="padding-top:0.3rem">{{pagedata.nowdian.address || '无自提点的详细地址'}}</div>
						</div>
						<div class="fui-cell-remark noremark" style="font-size: 0.65rem;">
							<div style="padding:0.15rem 0">
							<a href="tel:{{pagedata.nowdian.tel || pagedata.nowdian.mobile}}" class="btn btn-sm btn-success-o" style="border-radius:0.2rem;line-height:1.8;color:#f60;border: 1px solid #f60;">
							<i class="icon icon-phone" style="font-size:0.6rem"></i>
							拨打电话
							</a>
							</div>
							<div style="padding:0.15rem 0">
							<span ng-click="pagedata.openLocation(pagedata.nowdian);" class="btn btn-sm btn-success-o" style="border-radius:0.2rem;line-height:1.8;color:#f60;border: 1px solid #f60;">
							<i class="icon icon-map" style="font-size:0.6rem"></i>
							一键导航
							</span>
							</div>
						</div>
					</div>
			</div>
			<div ng-if="pagedata.feemoney.isopen==1" class="fui-cell-group fui-cell-click mod-group">
							<a class="fui-cell external" href="javascript:;" ng-click="access_json('jy_pigtuan/order.list/')">
								<div class="fui-cell-text bold">我的账单</div>
								<div class="fui-cell-remark" style="font-size: 0.65rem;">查看全部账单</div>
							</a>
							<div class="fui-icon-group col-4 selecter">
								<a class="fui-icon-col-sm external" href="javascript:;">
									<div class="syscolorred bold">{{pagedata.feemoney_day || '0.00'}}</div>
									<div class="text">今日节省</div>
								</a>
								<a class="fui-icon-col-sm external" href="javascript:;">
									<div class="syscolorred bold">{{pagedata.feemoney_month || '0.00'}}</div>
									<div class="text">本月节省</div>
								</a>
								<a class="fui-icon-col-sm external" href="javascript:;">
									<div class="syscolorred bold">{{pagedata.feemoney_years || '0.00'}}</div>
									<div class="text">本年节省</div>
								</a>
								<a class="fui-icon-col-sm external" href="javascript:;">
									<div class="syscolorred bold">{{pagedata.feemoney_lastyears || '0.00'}}</div>
									<div class="text">去年节省</div>
								</a>
							</div>
			</div>
						<div ng-if="pagedata.setting.no_days!=1" class="fui-cell-group fui-cell-click mod-group">
										<a class="fui-cell" href="javascript:;">
											<div class="fui-cell-text bold">
												我的日常
											</div>
											<div class="fui-cell-remark noremark"></div>
										</a>
										<div class="fui-icon-group col-4 selecter">
											<a ng-repeat="item in pagedata.setting.my_days" class="fui-icon-col-sm external" href="javascript:;" ng-click="access_json(item.action)">
												<div ng-if="item.action=='jy_pigtuan/member.cart/' && pagedata.statics.cartnums>0" class="badge">{{pagedata.statics.cartnums}}</div>
												<div class="icon icon-green radius"><i class="icon {{item.icon}}"></i></div>
												<div class="text">{{item.title}}</div>
											</a>
										</div>
						</div>
						<div class="fui-cell-group fui-cell-click mod-group">
								<a ng-if="pagedata.setting.no_logs!=1" class="fui-cell" href="javascript:;">
											<div class="fui-cell-text bold">
												我的记录
												</div>
											<div class="fui-cell-remark" href="javascript:;" ng-click="access_json('core/member.credit_log/')"></div>
								</a>
								<div ng-if="pagedata.setting.no_logs!=1" class="fui-icon-group col-4 selecter">
											<a ng-repeat="item in pagedata.setting.my_logs" class="fui-icon-col-sm external" href="javascript:;" ng-click="access_json(item.action)">
												<div class="icon icon-green radius"><i class="icon {{item.icon}}"></i></div>
												<div class="text">{{item.title}}</div>
											</a>
											<a ng-if="pagedata.setting.no_others!=1" ng-repeat="item in pagedata.setting.my_memberbtn" class="fui-icon-col-sm" href="javascript:;" ng-click="access_json(item.action)">
												<div class="icon"><i class="icon {{item.icon}}"></i></div>
												<div class="text">{{item.title}}</div>
											</a>
											<a ng-if="pagedata.setting.no_tousu!=1" class="fui-icon-col-sm" href="javascript:;" ng-click="access_json('jy_weishop/member.tousu/')">
												<div class="icon"><i class="icon icon-survey1"></i></div>
												<div class="text">
													投诉建议
												</div>
												<div class="fui-cell-remark"></div>
											</a>
								</div>
						</div>
						<div ng-if="pagedata.is_peisong>0" class="fui-cell-group fui-cell-click mod-group">
										<a class="fui-cell" href="javascript:;" ng-click="access_json('jy_peisong/index/')">
											<div class="fui-cell-icon"><i class="icon icon-peisong"></i></div>
											<div class="fui-cell-text">
												配送员入口
											</div>
											<div class="fui-cell-remark"></div>
										</a>
						</div>
						<div ng-if="pagedata.is_worker>0" class="fui-cell-group fui-cell-click mod-group">
										<a class="fui-cell" href="javascript:;" ng-click="access_json('jy_weishop/store.manage.index/')">
											<div class="fui-cell-icon"><i class="icon icon-caifua"></i></div>
											<div class="fui-cell-text">
												店员入口
											</div>
											<div class="fui-cell-remark"></div>
										</a>
						</div>
						<div ng-if="pagedata.setting.my_memberbtn.length>0 && pagedata.setting.no_others!=1" class="fui-cell-group fui-cell-click mod-group">
								<a ng-repeat="item in pagedata.setting.my_memberbtn" class="fui-cell" href="javascript:;" ng-click="access_json(item.action)">
									<div class="fui-cell-icon"><i class="icon {{item.icon}}"></i></div>
									<div class="fui-cell-text">
											{{item.title}}
									</div>
									<div class="fui-cell-remark"></div>
								</a>
						</div>
						<div ng-if="pagedata.setting.no_verify!=1" class="fui-cell-group fui-cell-click mod-group">
								<a class="fui-cell external" ng-click="access_json('jy_weishop/order.list//status=2')">
									<div class="fui-cell-icon"><i class="icon icon-gouwu"></i></div>
									<div class="fui-cell-text">待使用商品信息</div>
									<div class="fui-cell-remark" style="font-size: 0.5rem;"></div>
								</a>
								<div ng-if="pagedata.verifygoods.length>0" class="fui-icon-group selecter" style="overflow: scroll;">
									<ul class="banner-ul">
										<li ng-repeat="item in pagedata.verifygoods" ng-class="{'banner-li-blue':item.numlimit}">
											<a ng-if="item.cangetcard" ng-click="pagedata.addcard(item.card_id,item.cardcode)">
												<div></div>
												<span>待激活</span>
												<img ng-src="{{tomedia(item.image) || '../core/resource/images/nopic.jpg'}}" alt="">
												<p>	{{item.title}}</p>
											</a>
											<a ng-if="!item.cangetcard" ng-click="access_json('jy_weishop/verify.verifygoods/detail/id='+item.id)">
												<div></div>
												<span>待使用</span>
												<img ng-src="{{tomedia(item.image) || '../core/resource/images/nopic.jpg'}}" alt="">
												<p>	{{item.title}}</p>
											</a>
										</li>
									</ul>
								</div>
						</div>
						<div class="fui-cell-group fui-cell-click" style="background:none">
							<a class="fui-cell external changepwd" href="javascript:;" ng-click="access_json('core/member.cpassword/')">
								<div class="fui-cell-text" style="text-align: center;">修改密码</div>
							</a>
							<a class="fui-cell external btn-logout" ng-click="post_json('core/member.logout/')">
								<div class="fui-cell-text" style="text-align: center;">退出登录</div>
							</a>
						</div>
			<div ng-include="sys_html('common/_copyright',true)"></div>
	</div>
	</div>
</div>
<div id="show_vipcard"  class="modal fade" tabindex="-1" style="z-index:99999;display:none;">
		<div class="modal-dialog" style="top:30%;">
			<div class="memlogo-area" style="background:url({{tomedia(pagedata.item.cardbg) || '../core/resource/images/cardbg.png'}}) no-repeat 100%">
                    <div class="memlogo">
                        <img ng-src="{{tomedia(pagedata.item.avatar) || '../core/resource/images/gw-user.png'}}">
                    </div>
                    <div class="name">{{pagedata.item.nickname || '匿名'}}</div>
                    <br>
                    <div class="name">{{pagedata.item.mobile || '无手机号'}}</div>
                    <div class="code">
                        <img ng-src="{{tomedia(pagedata.account.logo) || '../core/resource/images/wxappicon.png'}}">
                    </div>
                    <div class="bot">
						<img id="barcode" style="height:2.5rem"/>
                        <span class="r-f">{{pagedata.item.level}}</span>
                    </div>
            </div>
		</div>
</div>
<div ng-include="sys_html('shop/_area','','','jy_area_dian')"></div>
<div ng-include="sys_html('_footer')"></div>
<div ng-include="sys_html('common/_share')"></div>
<div ng-include="sys_html('common/_sales')"></div>
<script>
require(['JsBarcode'],function(JsBarcode){
	//console.log('准备调用');
	JsBarcode('#barcode',scope.pagedata.item.id,{fontSize:36});
});
scope.pagedata.openLocation=function(item){
	wx.openLocation({
	latitude: item.lat_lng.lat, // 纬度，浮点数，范围为90 ~ -90
	longitude: item.lat_lng.lng, // 经度，浮点数，范围为180 ~ -180。
		name: item.province+item.city+item.district, // 位置名
		address: item.address, // 地址详情说明
		scale: 20, // 地图缩放级别,整形值,范围从1~28。默认为最大
		infoUrl: '', // 在查看位置界面底部显示的超链接,可点击跳转
		success:function(){
			//alert(1111);
		}
	});
}
</script>